home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / source / dialogs / makefile < prev    next >
Encoding:
Makefile  |  1992-06-02  |  1.6 KB  |  71 lines

  1. #   Windows Dialogs
  2. #   Makefile
  3.  
  4. #Remove '#' from next line for "silent" operation
  5. !CMDSWITCHES +s
  6.  
  7.  
  8. #
  9. #Compiler flags
  10. #Use "SET RETAIL=1" from MS-DOS to compile non-debug version.
  11. #
  12. !ifndef RETAIL
  13. CFLAGS = -c -Od -AS -Zipe -G2sw -W3
  14. DEFS=-DDEBUG
  15. !else
  16. CFLAGS = -c -Oas -AS -Zpe -G2sw -W3
  17. DEFS=
  18. !endif
  19.  
  20.  
  21. #Files on which every C file depends.  Add others as appropriate
  22. INCLS=dialogs.h
  23.  
  24. .SUFFIXES: .h .c .asm .obj .exe .cxx .res .rc .bas
  25.  
  26. goal:  dialogs.exe
  27.  
  28.  
  29. OBJS   =dialogs.obj color.obj file.obj font.obj print.obj search.obj
  30. RCFILES=dialogs.ico select.dlg color.dlg
  31.  
  32. #####
  33.  
  34. .c.obj:
  35.     echo ++++++++++
  36.     echo Compiling $*.c
  37.     cl $(CFLAGS) $(DEFS) $*.c
  38.  
  39. .rc.res:
  40.     echo +++++++++
  41.     echo Compiling Resources
  42.     rc -r $*.rc
  43.  
  44. #This rule builds a linker response file on the fly depending on debug flags
  45. dialogs.exe : $(OBJS) dialogs.res
  46.     echo dialogs color file font print search > dialogs.lrf
  47.  
  48. !ifndef RETAIL
  49.     echo dialogs/al:16/CO                     >> dialogs.lrf
  50. !else
  51.     echo dialogs/al:16                        >> dialogs.lrf
  52. !endif
  53.  
  54.     echo /map/li                              >> dialogs.lrf
  55.     echo libw slibcew commdlg/NOD/NOE         >> dialogs.lrf
  56.     echo dialogs.def                          >> dialogs.lrf
  57.  
  58.     link @dialogs.lrf
  59.     rc dialogs.res
  60.  
  61.  
  62. ##### Dependencies #####
  63.  
  64. dialogs.obj    : dialogs.c    $(INCLS)
  65. color.obj      : color.c      $(INCLS)
  66. font.obj       : font.c       $(INCLS)
  67. file.obj       : file.c       $(INCLS)
  68. print.obj      : print.c      $(INCLS)
  69. search.obj     : search.c     $(INCLS)
  70. dialogs.res    : dialogs.rc   $(INCLS) $(RCFILES)
  71.